package com.dianping.cat.consumer.problem.model.transform;

import com.dianping.cat.consumer.problem.model.IVisitor;
import com.dianping.cat.consumer.problem.model.entity.Duration;
import com.dianping.cat.consumer.problem.model.entity.Entity;
import com.dianping.cat.consumer.problem.model.entity.Entry;
import com.dianping.cat.consumer.problem.model.entity.GraphTrend;
import com.dianping.cat.consumer.problem.model.entity.JavaThread;
import com.dianping.cat.consumer.problem.model.entity.Machine;
import com.dianping.cat.consumer.problem.model.entity.ProblemReport;
import com.dianping.cat.consumer.problem.model.entity.Segment;


public abstract class BaseVisitor
  implements IVisitor
{
  public void visitDuration(Duration duration) {}
  
  public void visitEntity(Entity entity) {
/* 20 */     for (JavaThread thread : entity.getThreads().values()) {
/* 21 */       visitThread(thread);
    }
    
/* 24 */     for (Duration duration : entity.getDurations().values()) {
/* 25 */       visitDuration(duration);
    }
    
/* 28 */     if (entity.getGraphTrend() != null) {
/* 29 */       visitGraphTrend(entity.getGraphTrend());
    }
  }

  
  public void visitEntry(Entry entry) {
/* 35 */     for (Duration duration : entry.getDurations().values()) {
/* 36 */       visitDuration(duration);
    }
    
/* 39 */     for (JavaThread thread : entry.getThreads().values()) {
/* 40 */       visitThread(thread);
    }
  }


  
  public void visitGraphTrend(GraphTrend graphTrend) {}

  
  public void visitMachine(Machine machine) {
/* 50 */     for (Entry entry : machine.getEntries()) {
/* 51 */       visitEntry(entry);
    }
    
/* 54 */     for (Entity entity : machine.getEntities().values()) {
/* 55 */       visitEntity(entity);
    }
  }

  
  public void visitProblemReport(ProblemReport problemReport) {
/* 61 */     for (Machine machine : problemReport.getMachines().values()) {
/* 62 */       visitMachine(machine);
    }
  }


  
  public void visitSegment(Segment segment) {}

  
  public void visitThread(JavaThread thread) {
/* 72 */     for (Segment segment : thread.getSegments().values())
/* 73 */       visitSegment(segment); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/problem/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */